{
    volScalarField rAU(1.0/UEqn.A());
    surfaceScalarField rAUf(fvc::interpolate(rAU));

    U = rAU*UEqn.H();
    //relax
    if (!pimple.finalIter()) {
        U = 0.7 * U.oldTime() + 0.3 * U;
    }

    surfaceScalarField phiU
    (
        "phiU",
        (fvc::interpolate(U) & mesh.Sf())
      + fvc::ddtPhiCorr(rAU, rho, U, phi)
    );

    adjustPhi(phiU, U, p);

    phi = phiU +
    (
	    fvc::interpolate(rho)*(g & mesh.Sf())
      + fcf * mesh.magSf()
      - fvc::snGrad(pc) * mesh.magSf()
    )*rAUf;

    //relax
    /*if (!pimple.finalIter()) {
        phi = 0.7 * phi_old + 0.3 * phi;
    } else {
	    phi_old = phi;
    }*/

    while (pimple.correctNonOrthogonal())
    {
        fvScalarMatrix pEqn
        (
            fvm::laplacian(rAUf, p) == fvc::div(phi)
        );

        pEqn.setReference(pRefCell, getRefCellValue(p, pRefCell));

        pEqn.solve
        (
            mesh.solver(p.select(pimple.finalInnerIter()))
        );

		if (pimple.finalNonOrthogonalIter())
        {
            phi -= pEqn.flux();
        }
    }

    U += rAU*fvc::reconstruct((phi - phiU)/rAUf);
    U.correctBoundaryConditions();

    #include "continuityErrs.H"

    /*p == p_rgh + rho*gh;

    if (p_rgh.needReference())
    {
        p += dimensionedScalar
        (
            "p",
            p.dimensions(),
            pRefValue - getRefCellValue(p, pRefCell)
        );
        p_rgh = p - rho*gh;
    }*/
}
